-- GENERATED SPELL FOR [Stonevault Mauler] --


function spell0_7320(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(8269,pUnit)
pUnit:RegisterEvent('Sorts_7320', 609, 1)
end

function spell1_7320(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_7320', 670, 1)
end

function Sorts_7320(pUnit, Event)
local choix_sorts_7320 = math.random(0, 1)
if choix_sorts_7320 == 0 then
pUnit:RegisterEvent('spell0_7320', 1, 1)
end
if choix_sorts_7320 == 1 then
pUnit:RegisterEvent('spell1_7320', 1, 1)
end
end

function mob7320_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7320', math.random(1500, 3000), 1)
end

function mob7320_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7320_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7320_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7320, 1, 'mob7320_Action')
RegisterUnitEvent(7320, 2, 'mob7320_Leave')
RegisterUnitEvent(7320, 3, 'mob7320_Kill')
RegisterUnitEvent(7320, 4, 'mob7320_Die')
